home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / x11 / rpg / crossfir.92 / crossfir / crossfire-0.92.5 / common / Imakefile < prev    next >
Makefile  |  1996-07-24  |  2KB  |  87 lines

  1. /*   CrossFire, A Multiplayer game for X-windows
  2.  *
  3.  *   $Id: Imakefile,v 1.13 1996/07/24 06:59:39 master Exp master $
  4.  *
  5.  *   Copyright (C) 1992 Frank Tore Johansen
  6.  *
  7.  *   This program is free software; you can redistribute it and/or modify
  8.  *   it under the terms of the GNU General Public License as published by
  9.  *   the Free Software Foundation; either version 2 of the License, or
  10.  *   (at your option) any later version.
  11.  *
  12.  *   This program is distributed in the hope that it will be useful,
  13.  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *   GNU General Public License for more details.
  16.  *
  17.  *   You should have received a copy of the GNU General Public License
  18.  *   along with this program; if not, write to the Free Software
  19.  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  *
  21.  *   The author can be reached via e-mail to frankj@ifi.uio.no.
  22.  */
  23.  
  24. #include "../config/crossfire.tmpl"
  25.  
  26. INCLUDES = -I../include $(RPLAY_INCDIR)
  27.  
  28. LIBTARGET = cross
  29.  
  30. SRCS = \
  31.     arch.c\
  32.     button.c\
  33.     exp.c\
  34.     friend.c\
  35.     glue.c\
  36.     info.c\
  37.     image.c \
  38.     init.c\
  39.     item.c\
  40.     links.c\
  41.     living.c\
  42.     loader.c\
  43.     logger.c\
  44.     los.c\
  45.     ltostr.c\
  46.     map.c\
  47.     object.c\
  48.     porting.c\
  49.     player.c\
  50.     re-cmp.c\
  51.     readable.c\
  52.     recipe.c\
  53.     shstr.c\
  54.     sqrt.c\
  55.     time.c\
  56.     treasure.c\
  57.     xutil.c
  58.  
  59. OBJS = $(SRCS:.c=.o)
  60.  
  61. all:: $(OBJS)
  62.  
  63. /* NormalLibraryObjectRule() /* This doesn't work on Ultrix-4.2A, somehow... */
  64.  
  65. NormalLibraryTarget($(LIBTARGET), $(OBJS))
  66.  
  67. DependTarget()
  68.  
  69. install:: all
  70.  
  71. relink:
  72.     (cd ..; make relink)
  73.  
  74. proto:
  75.     cextract +Ap -P -o ../include/libproto.h.bak -I$(INCROOT) $(INCLUDES) \
  76.     -I/usr/local/lib/gcc-include -cpp-program="gcc -E -C" \
  77.     $(SRCS)
  78.     sed -e "s/#if __STDC__/#ifdef __STDC__/" < ../include/libproto.h.bak > ../include/libproto.h
  79.     chmod 664 ../include/libproto.h
  80.     $(RM) ../include/libproto.h.bak
  81.  
  82. InsertArchive(README Imakefile $(SRCS),common)
  83.  
  84. doc:
  85.     rm -f ../doc/crosslib.doc
  86.     cextract +cpwm -xPSE -s=none -D__Making_docs__ -o ../doc/crosslib.doc -I$(INCROOT) $(INCLUDES) $(SRCS)
  87.